/**********************************************************
 * Copyright © 2008，北京福富软件技术股份有限公司
 * All Rights Reserved.
 *
 * 文件名称： UploadForm.java
 * 摘    要：
 *
 * 初始版本：1.0.0
 * 原 作 者：Daniel
 * 完成日期：2009-9-4
 *
 * 当前版本：$LastChangedRevision$
 * 作    者：$LastChangedBy$
 * 完成日期：$LastChnagedDate$
 ************************************************************/
package aip.ui.attachment.web.spring;

import java.io.Serializable;
import java.util.List;

import aip.core.model.attachment.Attachment;
import aip.core.model.attachment.Photo;

/**
 * UploadForm form<br/>
 * <table>
 * <tr>
 * <td>负责人/principal:</td>
 * <td colspan="2"></td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author
 * @version $Id$
 */
public class UploadForm implements Serializable
{
    private static final long serialVersionUID = -3785259515417621859L;
    private List<? extends Attachment> attachments;
    private String atchType;
    private int entityRefId;
    private int page = 1;
    private Photo photo = new Photo();
    private String result;

    /**
     * @return the attachments
     */
    @SuppressWarnings("unchecked")
    public List<Attachment> getAttachments()
    {
        return (List<Attachment>)attachments;
    }

    /**
     * @param attachments
     *        the attachments to set
     */
    public void setAttachments(List<? extends Attachment> attachments)
    {
        this.attachments = attachments;
    }

    /**
     * @return the entityRefId
     */
    public int getEntityRefId()
    {
        return entityRefId;
    }

    /**
     * @param entityRefId
     *        the entityRefId to set
     */
    public void setEntityRefId(int entityRefId)
    {
        this.entityRefId = entityRefId;
    }

    /**
     * @return the photo
     */
    public Photo getPhoto()
    {
        return photo;
    }

    /**
     * @param photo
     *        the photo to set
     */
    public void setPhoto(Photo photo)
    {
        this.photo = photo;
    }

    /**
     * @return the page
     */
    public int getPage()
    {
        return page;
    }

    /**
     * @param page
     *        the page to set
     */
    public void setPage(int page)
    {
        this.page = page;
    }

    /**
     * @return the id
     */
    public int getId()
    {
        return photo.getId();
    }

    /**
     * @param id
     *        the id to set
     */
    public void setId(int id)
    {
        this.photo.setId(id);
    }

    /**
     * @return the result
     */
    public String getResult()
    {
        return result;
    }

    /**
     * @param result
     *        the result to set
     */
    public void setResult(String result)
    {
        this.result = result;
    }

    /**
     * @return the atchType
     */
    public String getAtchType()
    {
        return atchType;
    }

    /**
     * @param atchType
     *        the atchType to set
     */
    public void setAtchType(String atchType)
    {
        this.atchType = atchType;
    }
}
